function zhuce() {
	var user_name = document.getElementById("user_name")
	var user_tel = document.getElementById("user_tel")
	var user_pwd = document.getElementById("user_pwd")
	var user_pwd1 = document.getElementById("user_pwd1")
	var oError = document.getElementById("error_box")
	var isError = true

	if(user_name.value.length > 20 || user_name.value.length < 6) {
		oError.innerHTML = "用户名请输入6-20位字符";
		isError = false;
		return;
	} 
	

            var res = verifyCode.validate(document.getElementById("code_input").value);
            if(res){
            }else{
            	oError.innerHTML ="验证码错误";
            	return
            }

		
var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; 
if(!myreg.test(user_tel.value)) 
{ 
	oError.innerHTML = "请输入有效的手机号码！";
    return false; 
}

	if(user_pwd.value.length > 20 || user_pwd.value.length < 6) {
		oError.innerHTML = "密码请输入6-20位字符"
		isError = false;
		return;
	}
	
	if(user_pwd.value!=user_pwd1.value) {
		oError.innerHTML = "密码不一致"
		isError = false;
		return;
	}
	
	$.ajax({
		url:"http://114.55.145.243:8080/liantu/RegisterServlet",
		data:$("form").serialize(),
		success:function(data){
			if(data.status)
				location.href="signin.html"
			else
			alert(data.msg)
		},
		dataType:"json"
	})
}


